
export default function (key) {
  let queryArr = location.search.slice(1).split('&')
  for (let item of queryArr) {
    const item1 = item.split('=')
    if (item1[0] === key) {
      return item1[1]
    }
  }
}

